<include file="./Application/Home/View/default/public/header.html" title="我的课程"/>
<div id="teacher-form" class="teacher-form body-margin">
    <div class="container">
        <div class="row">
            <div class="col-md-12 form-body">
                <div class="panel panel-default order">
                    <div class="panel-heading text-center">
                        <h3 class="panel-title">您的订单</h3>
                    </div>
                    <div class="table-responsive">
                        <table class="table panel-body panel-light order-list">
                            <tbody>
                            <tr>
                                <th>状态</th>
                                <th>时间</th>
                                <th>地址</th>
                                <th>
                                    老师
                                </th>
                                <th>时长与价格</th>
                            </tr>

                            <?php
                                    $stausArr = array(0=>'待确认',1=>'进行中',2=>'已完成',3=>'已取消');
                            foreach ($data as $value) {
                            ?>
                            <tr>
                                <td>
                                    <?php echo $stausArr[$value['status']]; ?>
                                </td>
                                <td>
                                    <?php echo $value['date']; ?>
                                </td>
                                <td>
                                    <?php echo $value['address']; ?>
                                </td>
                                <td>
                                    <?php echo $value['relname']; ?>
                                </td>
                                <td>
                                    <?php echo $value['price']; ?>
                                </td>
                            </tr>
                            <?php
                                    }
                                ?>
                            </tbody>
                        </table>
                        {$rander}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<include file="./Application/Home/View/default/public/footer.html"/>
</body>
</html>
